<!--
 * @Author: your name
 * @Date: 2021-10-26 20:57:25
 * @LastEditTime: 2021-10-26 23:22:42
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit

 * @FilePath: \wisdom-education-admin-front-v1.0.2-master\src\components\invigilate\changemachine.vue
-->
<template>
  <el-dialog
    width="50%"
    :visible.sync="dialogVisible"
    :close-on-click-modal="false"
    @closed="closeDialog"
    title="修改时长"
  >
    <!-- 修改时间 -->
    <el-form label-width="100px" v-model="editDateForm">
      <el-form-item label="添加时长" prop="editDateValue">
        <el-input v-model="editDateForm.editDateValue" clearable></el-input>
      </el-form-item>
    </el-form>

    <!-- 底部 -->
    <span slot="footer">
      <el-button @click="dialogVisible = false">取 消</el-button>
      <el-button type="primary">完成修改</el-button>
    </span>
  </el-dialog>
</template>

<script>
export default {
  name: "editdate",
  props: {
    showFlag: {},
  },
  data() {
    return {
      dialogVisible: false,
      editDateForm: {
        editDateValue: "30",
      },
    };
  },
  watch: {
    showFlag(val) {
      this.dialogVisible = val;
    },
  },
  mounted() {
    this.dialogVisible = this.showFlag;
  },
  methods: {
    closeDialog() {
      this.dialogVisible = false;
      this.$emit("closeDialog");
    },
  },
};
</script>
